<template>
    <div class="about">
        <el-tree :data="data" show-checkbox node-key="wId" :props="defaultProps"> </el-tree>
    </div>
</template>
<script>
import { Show } from '../../api/powers';

export default {
    data() {
        return {
            data: [],
            id: [],
            defaultProps: {
                children: 'wList',
                label: 'wName'
            }
        };
    },
    mounted() {
        Show().then((d) => {
            this.data = d.data;
        });
    }
};
</script>